package data;

import java.sql.Connection;
import java.util.List;
import logic.*;

public interface IMailboxDAO {
	List<Message> selectAllMessages();
	Message select(Connection conn, Integer idMessage);
	List<Message> selectBySubject(Connection conn, String subject);
	List<Message> selectByDate(Connection conn, String date1, String date2);
	Boolean sendMessage(Connection conn, User sender, User receiver, Message message);
	Boolean markRead(Connection conn, Message message);
	Boolean deleteMessage(Connection conn, Message message);
}
